import request from '@/utils/request'

//登陆
export function login(data) {
  return request({
    url: '/',
    method: 'post',
    data: data
  })
}
//获取路由
export function tree(data) {
  return request({
    url: '/tree_list',
    method: 'post',
    data: data
  })
}
//获取机构路由
export function school_tree(data) {
  return request({
    url: '/tree_school_list',
    method: 'post',
    data: data
  })
}

//验证权限
export function treeRole(data) {
  return request({
    url: '/verification_role',
    method: 'post',
    data: data
  })
}

//层级管理
export function p_tier(data) {
  return request({
    url: '/p_tier',
    method: 'post',
    data: data
  })
}

//获取首页人员数量
export function getIndexPeopleNum(data) {
  return request({
    url: '/getIndexPeopleNum',
    method: 'post',
    data: data
  })
}
//获取首页配置数据
export function get_config_list(data) {
  return request({
    url: '/get_config_list',
    method: 'post',
    data: data
  })
}
//修改数据配置
export function update_config(data) {
  return request({
    url: '/update_config',
    method: 'post',
    data: data
  })
}
